TQ3ObjectWriteMethod
You can define a method to write an object of your custom type to a file object.
typedef TQ3Status (*TQ3ObjectWriteMethod) ( const void *object, TQ3FileObject file);
object
- A QuickDraw 3D object.
file
- A file object.
DESCRIPTION
YourTQ3ObjectWriteMethod
function should write the root object data of the object specified by theobject
parameter, starting at the current location in the file object specified by thefile
parameter. You should use the primitive data type_Write
functions described in "Reading and Writing File Data," beginning on page 17-27 (for example,Q3Uns64_Write
andQ3Point3D_Write
).RESULT CODES
YourTQ3ObjectWriteMethod
function should returnkQ3Success
if it is successful andkQ3Failure
otherwise.